@font-face {
    font-family: 'vg5000_regularregular';
    src: url('../fonts/vg5000-regular_web-webfont.woff2') format('woff2'),
         url('../fonts/vg5000-regular_web-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'karrikregular';
    src: url('../fonts/karrik-regular-webfont.woff2') format('woff2'),
         url('../fonts/karrik-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: var(--bg-color, #ffffff);
    color: #0000ff;
    font-family: 'vg5000_regularregular', var(--font-vg5000, sans-serif);
    margin: 0;
    padding: 40px;
}

.protocol-intro-link {
    font-size: 0.85em;
    color: #0000ff;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.protocol-intro-link a {
    color: #0000ff;
    text-decoration: underline;
}

.protocol-intro-link a:hover {
    background-color: #0000ff;
    color: #ffffff;
}

.session-date {
    font-family: 'karrikregular', var(--font-karrik, var(--font-vg5000, sans-serif));
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 1.05em;
    color: #0000ff;
    text-transform: uppercase;
}

.session-date:not(:first-of-type) {
    margin-top: 28px;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px 16px;
}

.rv-pair {
    background: transparent;
    padding: 0;
    border: none;
    cursor: zoom-in;
}

.images-side-by-side {
    display: flex;
    gap: 6px;
}

.images-side-by-side img {
    width: 50%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    image-orientation: none;
    display: block;
}

.coordonnees {
    display: none;
}

/* Lightbox plein écran côte à côte */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 60px;
    box-sizing: border-box;
    user-select: none;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-family: 'vg5000_regularregular', var(--font-vg5000, sans-serif);
    font-size: 1.1em;
    color: #0000ff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background-color: #0000ff;
    color: #ffffff;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1700px;
    max-height: 82vh;
}

.lightbox-content img {
    width: calc(50% - 12px);
    max-height: 80vh;
    object-fit: contain;
    image-orientation: none;
    display: block;
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.lightbox-coord {
    font-family: 'vg5000_regularregular', var(--font-vg5000, sans-serif);
    font-size: 1.1em;
    color: #0000ff;
}

.lightbox-nav {
    font-family: 'vg5000_regularregular', var(--font-vg5000, sans-serif);
    font-size: 1.2em;
    color: #0000ff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 12px;
}

@media (max-width: 1400px) {
    .mosaic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .mosaic-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-content img {
        width: 100%;
        max-height: 38vh;
    }
}
